package lab02.Test06;


import java.util.Scanner;

public class Test06 {
    public static void main(String[] args) {

        //圆
        System.out.println("测试圆：");
        Circle sc = new Circle();
        System.out.println("周长是：" + sc.perimeter(5));
        System.out.println("面积是：" + sc.area(5));
       //梯形
        System.out.println("测试梯形：");
        Ladder sp = new Ladder();
        sp.area(5, 6, 7);

       //三角形
        System.out.println("测试三角形：");
        Triangle sd = new Triangle();
        System.out.println("输入边长：");
        Scanner sl = new Scanner(System.in);
        double a = sl.nextDouble();
        double b = sl.nextDouble();
        double c = sl.nextDouble();

        if (sd.isTriangle(a, b, c)) {
            System.out.println("是三角形");
            System.out.println("三角形的周长是：" + sd.getPerimeter(a, b, c));
            System.out.println("三角形的面积是：" + sd.getArea(a, b, c));

        } else {
            System.out.println("不是三角形");
        }
    }
}
